package com.linck.port.constant;

/**
 * @author linck
 */
public enum ExpireTypeEnum {
    /**
     * 一星期
     */
    ONEMONTH(1,604800),
    /**
     * 一天
     */
    ONEDAY(2,86400),
    /**
     * 一小时
     */
    ONEHOUR(3,3600);

    /**
     * 类型
     */
    private int type;
    /**
     * 过期时间
     */
    private int expireSecond;

    ExpireTypeEnum(int type, int expireSecond) {
        this.type = type;
        this.expireSecond = expireSecond;
    }

    public int getType() {
        return type;
    }

    public int getValue() {
        return expireSecond;
    }
}
